from random import randint
sm=0
i=0
while i <10:
    try:
        sm=sm+1/randint(0,1)
        i=i+1
    except Exception as e:
        print("错误:",e)
else:
    print(sm)